package cmo.neutech.day09.Cola;

import cmo.neutech.day09.Cola.ColaRmployee;

public class SalesEmployee extends ColaRmployee {
    double monthlySalesVolume;
    double royaltyRate;

    public SalesEmployee(String name,int month,double monthlySalesVolume, double royaltyRate) {
        super(name,month);
        this.monthlySalesVolume = monthlySalesVolume;
        this.royaltyRate = royaltyRate;
    }
    public int getSalary(int month){
        return (int) (super.getSalary(month) + monthlySalesVolume*royaltyRate);
    }
}
